import request from '../utils/request'

//登录
function login(data) {
    return request.post('/api/login', data)
}

//注册
function register(data) {
    return request.post('/api/register', data)
}

//获取排行榜数据
function getBroker(data) {
    return request.post('/api/broker', data)
}

//获取排行榜数据
function getBrokerList(data) {
    return request.post('/api/brokerList', data)
}

//获取消息数据
function getMessage(data) {
    return request.post('/api/message', data)
}

//删除消息数据
function getMesDetete(data) {
    return request.post('/api/mesDetete', data)
}

//获取二手房数据
function getResoldList(data) {
    return request.post('/api/getResoldHome', data)
}

//获取求租/购数据
function getWantedList(data) {
    return request.post('/api/getWanted', data)
}

//获取楼市圈数据
function gethomeMarket(data) {
    return request.post('/api/gethomeMarket', data)
}

//删除楼市圈数据
function getMarketDetete(data) {
    return request.post('/api/marketDelete', data)
}

//求租房产类型筛选
function getChooseType(date) {
    return request.post('/api/getChooseType', date)
}

//求租区域筛选
function getChooseAddress(date) {
    return request.post('/api/getChooseAddress', date)
}

//求租区域筛选
function getnewHomeAddress(date) {
    return request.post('/api/getnewHomeAddress', date)
}

export {
    login,
    register,
    getBroker,
    getBrokerList,
    getMessage,
    getMesDetete,
    getResoldList,
    getWantedList,
    gethomeMarket,
    getChooseType,
    getChooseAddress,
    getnewHomeAddress,
    getMarketDetete
}